#pragma once

#include <QObject>
#include "question.h"

class JudgeQuestion : public Question
{
    Q_OBJECT
public:
    explicit JudgeQuestion(QObject *parent = nullptr);


    bool fromJson(const QJsonObject &json)  override;

    QJsonObject toJson() const override ;

    QWidget *createWidget(QWidget *parent = nullptr) override;


protected:
    QString m_correctAnswer; // 正确答案
};
